/**
 * 
 */
package org.cuatrovientos.erp.model;

import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;

import javax.validation.constraints.Past;
import javax.validation.constraints.Size;

/**
 * @author Daniel Lacasta
 *
 */
public class Sale {
	
	private int id;
	
	@Size(min=1,max=50,message="{sale.name.error}")
	private String name;
	
	@Size(min=1,max=100,message="{sale.date.error}")
	private Timestamp date;
	
	@Size(message="{supplier.idemplyee.error}")
	private int idemplyee;
	
	
	
	public Sale () {
		
	}

	
	/**
	 * @param id
	 * @param name
	 * @param date
	 * @param idemplyee
	 */
	public Sale(int id, String name, Timestamp date, int idemplyee) {
		this.id = id;
		this.name = name;
		this.date = date;
		this.idemplyee = idemplyee;
	}

	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Shipment [id=" + id + ", name=" + name
				+ ", date=" + date + ", idemplyee=" + idemplyee +  "]";
	}


	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}


	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}


	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}


	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}


	/**
	 * @return the date
	 */
	public Timestamp getDate() {
		return date;
	}


	/**
	 * @param date the date to set
	 */
	public void setDate(Timestamp date) {
		this.date = date;
	}


	/**
	 * @return the idemplyee
	 */
	public int getIdemplyee() {
		return idemplyee;
	}


	/**
	 * @param idemplyee the idemplyee to set
	 */
	public void setIdemplyee(int idemplyee) {
		this.idemplyee = idemplyee;
	}

	

	

}
